from django.db import models

# Create your models here.

# 用户信息类
class UserInfo(models.Model):
    username = models.CharField("用户名", max_length=11, primary_key=True)
    password = models.CharField("密码", max_length=32)
    nickname = models.CharField("昵称", max_length=50)
    email = models.EmailField("电子邮箱")
    phone = models.CharField("手机号码", max_length=11)
    created_time = models.DateTimeField("创建时间", auto_now_add=True)
    updated_time = models.DateTimeField("修改时间", auto_now=True)